package com.qdlc.p2p.biz.service.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.AuthenticationLogService;
import com.qdlc.p2p.dal.dao.AuthenticationLogDao;
import com.qdlc.p2p.dal.dto.AuthenticationLog;

/**
 * Created by lenovo on 2016/1/14.
 */
@Service("authenticationLogService")
public class AuthenticationLogServiceImpl implements AuthenticationLogService {

    @Resource
    private AuthenticationLogDao authenticationLogDao;

    @Override
    public void save(AuthenticationLog authenticationLog) {
        authenticationLogDao.merge(authenticationLog);
    }

    @Override
    public int getStatus(long userId) {
        return authenticationLogDao.getStatus(userId);
    }

    @Override
    public Map<String,Object> getRemark(long userId,int count){
        return authenticationLogDao.getRemark(userId,count);
    }
}
